//医院详情数据类型
export interface ResData {
  code: number,
  message: string,
  ok: boolean
}
//医院详情数据的res.data
export interface HospitalDetailData {
  "bookingRule": {
    "cycle": number,
    "releaseTime": string,
    "stopTime": string,
    "quitDay": number,
    "quitTime": string,
    "rule": string[]
  },
  "hospital": {
    "id": string,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
      "hostypeString": string,
      "fullAddress": string
    },
    "hoscode": string,
    "hosname": string,
    "hostype": string,
    "provinceCode": string,
    "cityCode": string,
    "districtCode": string,
    "address": string,
    "logoData": string
    "intro": string,
    "status": number,
    "route": string,
    "bookingRule": null
  }
}
//医院详情数据返回的res
export interface HospitalDetailRes extends ResData {
  data: HospitalDetailData
}

//医院科室res.data
export interface HospitalDepartmentData {
  "depcode": string,
  "depname": string,
  "children"?: HospitalDepartmentData[]
}
export type HospitalDepartmentArr = HospitalDepartmentData[]
//医院科室res
export interface HospitalDepartmentRes extends ResData {
  data: HospitalDepartmentArr
}

//医院科室预约res.data.bookingScheduleList
export interface bookingScheduleList {
  "workDate": string,
  "workDateMd": string,
  "dayOfWeek": string,
  "docCount": number,
  "reservedNumber": number,
  "availableNumber": number,
  "status": number
}
export type bookingScheduleListArr = bookingScheduleList[]
//医院科室预约res.data.baseMap
export interface baseMap {
  "workDateString": string,
  "releaseTime": string,
  "bigname": string,
  "stopTime": string,
  "depname": string,
  "hosname": string
}
export type baseMapArr = baseMap[]
//医院科室预约res
export interface HospitalWorkRes extends ResData {
  data: {
    total: number,
    bookingScheduleList: bookingScheduleListArr,
    baseMap: baseMapArr
  }

}

//医生排班res.data[i]
export interface DocterListItem {
  "id": string,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {
    "dayOfWeek": string,
    "depname": string,
    "hosname": string
  }
  "hoscode": string,
  "depcode": string,
  "title": string,
  "docname": string,
  "skill": string,
  "workDate": string,
  "workTime": number,
  "reservedNumber": number,
  "availableNumber": number,
  "amount": number,
  "status": number,
  "hosScheduleId": string
}
//医生排班res.data
export type DocterArr =DocterListItem[]
//医生排班res
export interface DocterListRes extends ResData{
  data:DocterArr
}

//一个就诊人数据类型
export interface VisitsInfoItem{
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    certificatesTypeString: string;
    contactsCertificatesTypeString: string;
    cityString: null;
    fullAddress: string;
    districtString: null;
    provinceString: null;
  };
  userId: number;
  name: string;
  certificatesType: string;
  certificatesNo: string;
  sex: number;
  birthdate: string;
  phone: string;
  isMarry: number;
  provinceCode: null;
  cityCode: null;
  districtCode: null;
  address: string;
  contactsName: string;
  contactsCertificatesType: string;
  contactsCertificatesNo: string;
  contactsPhone: string;
  isInsure: number;
  cardNo: null;
  status: string;
}
//所有就诊人数据类型
export type VisitsInfoArr = VisitsInfoItem[];
//所有就诊人res
export interface VisitsInfoRes extends ResData{
  data:VisitsInfoArr
}

//挂号医生信息数据类型
export interface DocterInfoData extends ResData{
  data:DocterListItem
}